package com.nl.controller.xuyi.controller;

import com.nl.controller.web.service.TimedTaskService;
import com.nl.controller.xuyi.service.XuYiPocService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

@Slf4j
@Component
public class SynYunWeiList {
	@Autowired
	private XuYiPocService xuYiPocService;
	//第一次延迟30秒后执行，之后按fixedRate的规则每24小时秒执行一次。
    @Scheduled(initialDelay = 30000, fixedRate = 8640000)
    public void synYunWeiList() {
    	log.info("begin syn yunwei list");
		int count =xuYiPocService.synYunWeiList();
		log.info("finish syn yunwei list , list count = "+count);
    }

    
}
